package com.wo2record.blog.model;

import java.sql.Timestamp;
import java.util.List;

import com.wo2record.base.model.BaseModel;
import com.wo2record.user.model.UserLogin;

public class Article extends BaseModel {
	private UserLogin userLogin;
	private String title;
	private Timestamp createdOn;
	private String content;
	private Boolean isClose;
	private List<ArticleTag> articleTags;
	private List<ArticleComment> comments;
	
	//Getter and Setter
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Timestamp getCreatedOn() {
		return createdOn;
	}
	public void setCreatedOn(Timestamp createdOn) {
		this.createdOn = createdOn;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public List<ArticleComment> getComments() {
		return comments;
	}
	public void setComments(List<ArticleComment> comments) {
		this.comments = comments;
	}
	public UserLogin getUserLogin() {
		return userLogin;
	}
	public void setUserLogin(UserLogin userLogin) {
		this.userLogin = userLogin;
	}
	public Boolean getIsClose() {
		return isClose;
	}
	public void setIsClose(Boolean isClose) {
		this.isClose = isClose;
	}
	public List<ArticleTag> getArticleTags() {
		return articleTags;
	}
	public void setArticleTags(List<ArticleTag> articleTags) {
		this.articleTags = articleTags;
	}
}
